<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Guestbook</title>

<style type="text/css">

body {
 background-color: #fff;
 margin: 40px;
 font-family: Lucida Grande, Verdana, Sans-serif;
 font-size: 14px;
 color: #4F5155;
}

a {
 color: #003399;
 background-color: transparent;
 font-weight: normal;
}

h1 {
 color: #444;
 background-color: transparent;
 border-bottom: 1px solid #D0D0D0;
 font-size: 16px;
 font-weight: bold;
 margin: 24px 0 2px 0;
 padding: 5px 0 6px 0;
}

code {
 font-family: Monaco, Verdana, Sans-serif;
 font-size: 12px;
 background-color: #f9f9f9;
 border: 1px solid #D0D0D0;
 color: #002166;
 display: block;
 margin: 14px 0 14px 0;
 padding: 12px 10px 12px 10px;
}

</style>
</head>
<body>


<h1>Guestbook</h1>
<?php
/*
foreach($data->result_array() as $row)
{
echo $row['name'];
echo "<p>".$row['message']."</p><hr>";
}
*/
?>
<br>
<?php echo validation_errors(); ?>
<?php echo form_open('guestbook/index'); ?>
	<table>
		<tr>
			<td>Name</td><td><input type="text" name="name"></td>
		</tr>
		<tr>
			<td>Messaage</td><td><textarea name="message" cols="16" rows="5"></textarea></td>
		</tr>
		<tr>
			<td colspan="2"><input type="submit" name="submit" value="submit"><td>
		</tr>
	</table>
</form>
<p>Powered by Codeigniter</p>

</body>
</html>

